#ifndef OBJECT_H
#define OBJECT_H
#include <allegro.h>

class object {
	public:
		int seconds;

		int x;
		int y;

		int w;
		int h;

		int speed_y;

		BITMAP *img;
	
		object(int seconds, int x, int speed_y, BITMAP *img);

		bool exists(int seconds);

		void draw(BITMAP *buffer);

		void move();

		int is_out(int ground_y);
};

#endif

